.space-home-wrap {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: calc(100vh - 50px);
  background-image: url(@/assets/image/spacebg.webp), url(@/assets/image/spacebg.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  .spaceBody {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-right: 0;
    transition: margin-right 0.8s; /* 添加过渡效果 */
    &.marginRight {
      margin-right: 568px;
      transition: margin-right 0.8s; /* 添加过渡效果 */
    }

    .space-bot {
      position: absolute;
      top: 0;
      right: 0;
      text-align: right;
    }
  }
}

.departmentSpaceWrap {
  position: relative;
  position: relative;
  display: flex;
  align-content: center;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: calc(100vh - 48px);
  background-image: url(@/assets/image/departmentBG.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  .depaSpaceLeft {
    position: relative;
    flex: 1;
    margin-right: 0;
    padding: 0 40px;
    overflow: hidden; /* 防止子元素溢出时影响布局 */
    transition: margin-right 0.8s; /* 添加过渡效果 */
    &.marginRight {
      margin-right: 568px;
      transition: margin-right 0.8s; /* 添加过渡效果 */
    }
    .depaSpaceTitle {
      width: 100%;
      height: 30px;
      margin-top: 42px;
      margin-bottom: 42px;
      color: #ffffff;
      font-weight: 500;
      font-size: 22px;
      font-family: PingFangSC, PingFang SC;
      line-height: 30px;
    }
    .depaSpaceTab {
      position: relative;
      width: 100%;
      overflow-x: auto; /* 添加横向滚动条 */
      white-space: nowrap; /* 防止子元素换行 */
      scrollbar-width: thin; /* Firefox支持的属性，设为thin表示使用浏览器默认样式 */
      -webkit-overflow-scrolling: touch; /* 启用硬件加速滚动，提高滚动的流畅性（可选） */

      &::-webkit-scrollbar {
        width: 12px; /* 设置滚动条宽度 */
      }

      &::-webkit-scrollbar-track {
        background: transparent; /* 滚动条轨道背景色 */
      }

      &::-webkit-scrollbar-thumb {
        background-color: transparent; /* 滚动条滑块颜色 */
        border-radius: 6px; /* 滑块边框半径 */
      }
      .depaSpaceTabList {
        display: inline-block; /* 让元素在同一行显示 */
        width: auto;
        height: 43px;
        margin-right: 10px; /* 可选，添加一些间距 */
        padding: 0 26px;
        color: #ffffff;
        font-weight: 500;
        font-size: 14px;
        font-family: PingFangSC, PingFang SC;
        line-height: 43px;
        background: #474d66;
        border-radius: 6px;
        cursor: pointer;
        &.active {
          background: linear-gradient(345deg, #2254c9 0%, #843efd 100%);
        }
      }
    }
    .depaSpaceContent {
      display: flex;
      flex-wrap: wrap;
      align-content: flex-start;
      align-items: flex-start;
      justify-content: flex-start;
      width: 100%;
      height: calc(100vh - 320px);
      margin-top: 40px;
      overflow: auto;
      .depaSpaceList {
        box-sizing: border-box;
        width: 200px;
        height: 266px;
        margin: 0 20px 20px 0;
        padding: 16px 20px;
        background: #474d66;
        background-color: rgba(71, 77, 102, 0.77);
        border-radius: 6px;

        cursor: pointer;
        .depaSpaceTagBox {
          .depaSpaceTag {
            display: inline-block;
            width: auto;
            margin-right: 5px;
            margin-bottom: 10px;
            padding: 5px 10px;
            color: #6e94ff;
            font-weight: 600;
            font-size: 12px;
            font-family: PingFangSC, PingFang SC;
            background: rgba(57, 123, 255, 0.2);
            border-radius: 4px;
          }
        }

        .depaSpaceTit {
          display: -webkit-box;
          width: 100%;
          height: 40px;
          margin-bottom: 10px;
          overflow: hidden;
          color: #ffffff;
          font-weight: 600;
          font-size: 14px;
          font-family: PingFangSC, PingFang SC;
          line-height: 20px;
          text-overflow: ellipsis;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
        .depaSpaceCont {
          display: -webkit-box;
          width: 100%;
          height: 84px;
          overflow: hidden;
          color: #ffffff;
          font-weight: 400;
          font-size: 12px;
          font-family: PingFangSC, PingFang SC;
          line-height: 20px;
          text-overflow: ellipsis;
          -webkit-line-clamp: 4;
          -webkit-box-orient: vertical;
        }
      }
      .depaSpaceQuote {
        height: 34px;
        margin: 16px 0 6px;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 500;
        font-size: 12px;
        font-family: PingFangSC, PingFang SC;
        line-height: 17px;
        // display: -webkit-box;
        // text-overflow: ellipsis;
        // -webkit-line-clamp: 2;
        // -webkit-box-orient: vertical;
        .depaSpaceQuoteNum {
          display: inline-block;
          // text-overflow: ellipsis;
          // white-space: nowrap;
          display: -webkit-box;
          height: 34px;
          margin: 0 0px;
          overflow: hidden;
          color: #397bff;
          text-overflow: ellipsis;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
        }
      }
      .depaSpaceTime {
        height: 17px;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 500;
        font-size: 12px;
        font-family: PingFangSC, PingFang SC;
        line-height: 17px;
      }
    }
    .depaSpacePagination {
      width: 100%;
      height: 40px;
      margin-top: 10px;
      color: fff;
      // background: #fff;
      .ant-pagination {
        color: #ffffff !important;
      }
      .ant-pagination-item-link,
      .ant-pagination-item-ellipsis {
        color: #ffffff !important;
      }
      .ant-pagination .ant-pagination-item a {
        color: #ffffff !important;
      }
      .ant-pagination-item-active {
        background-color: transparent !important;
      }
    }
  }
  .depaSpaceRight {
    position: absolute;
    top: 0;
    right: 0;
    width: 568px;
    text-align: right;
    .SpaceBotTitle {
      color: #ffffff;
      background: #253458;
      border-radius: 10px 10px 0 0;
      box-shadow: 0px 2px 4px 0px rgba(255, 255, 255, 0.2);
    }
    .SpaceBotBox {
      color: #fff !important;
      background: #263459 !important;
    }
    .modeList {
      color: #fff !important;
      background: #36446d !important;
      .targetResult-hd {
        color: #ffffff !important;
      }
      .targetResult-bd {
        // color: #FFFFFF !important;
      }
    }
    .modeListTitle {
      color: #fff !important;
      background: #36446d !important;
    }
    .InputModeBottom {
      color: #fff !important;
      background: #45547c !important;
      .InputModeInputBox {
        color: rgba(255, 255, 255, 0.2) !important;
        background: #45547c !important;
        input {
          color: rgba(255, 255, 255, 0.8) !important;
          background: #45547c !important;
          &::placeholder {
            color: rgba(255, 255, 255, 0.8) !important;
          }
        }
      }
    }
  }
}
.departmentDetailModal {
  .ant-modal-content {
    color: #ffffff !important;
    background: #313346 !important;
    border-radius: 10px;
    box-shadow: 0px 9px 56px 0px rgba(0, 0, 0, 0.5), 0px 13px 36px 0px rgba(54, 60, 81, 0.15);
  }
  .ant-modal-close-x {
    color: #ffffff !important;
  }
  .ant-modal-body {
    .articleEleRef {
      height: 673px;
      padding-right: 10px;
      overflow-y: auto !important;
      background: #313346;
    }
  }

  .departmentDetailTitleBox {
    color: #ffffff !important;
    background: #313346 !important;
    .departmentDetailTitle {
      min-height: 28px;
      margin: 10px 0 20px;
      color: #ffffff !important;
      font-weight: bold;
      font-size: 24px;
      font-family: OPPOSans-30, OPPOSans-30;
      line-height: 28px;
      text-shadow: 0px 9px 56px rgba(0, 0, 0, 0.5);
    }
    .departmentDetailTag {
      display: inline-block;
      width: auto;
      margin-bottom: 12px;
      margin-left: 5px;
      padding: 5px 18px;
      color: #6e94ff;
      font-weight: 600;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      background: rgba(57, 123, 255, 0.2);
      border-radius: 4px;
    }
  }
  .departmentDetailFooterBox {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    height: 40px;
    padding-top: 20px;
    overflow: hidden;
    line-height: 50px;
    text-align: left;
    border-top: 1px solid rgba(151, 151, 151, 0.2);
    .departmentDetailFooterInfo {
      display: inline-block;
      width: auto;
      height: 17px;
      margin-right: 10px;
      color: rgba(255, 255, 255, 0.5);
      font-weight: 500;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      line-height: 17px;
    }
    .departmentDetailFooterInfo2 {
      display: inline-block;
      display: -webkit-box;
      flex: 1;
      height: 17px;
      margin-right: 10px;
      color: rgba(255, 255, 255, 0.5);
      font-weight: 500;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      line-height: 17px;
      text-overflow: ellipsis;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }
  }
}
